package com.anolesoft.yr.mbus.contm.dao;


import com.anolesoft.system.fac.entity.Employee;
import com.anolesoft.yr.mbus.contm.entity.ContmStyleMain;
import com.anolesoft.yr.mbus.contm.entity.ContmStyleMainExample;
import java.util.List;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ContmStyleMainDao extends BaseMapper<ContmStyleMain> {
    long countByExample(ContmStyleMainExample example);

    int deleteByExample(ContmStyleMainExample example);

    /**
     * delete by primary key
     * @param objuid primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(String objuid);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(ContmStyleMain record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(ContmStyleMain record);

    List<ContmStyleMain> selectByExample(ContmStyleMainExample example);

    /**
     * select by primary key
     * @param objuid primary key
     * @return object by primary key
     */
    ContmStyleMain selectByPrimaryKey(String objuid);

    int updateByExampleSelective(@Param("record") ContmStyleMain record, @Param("example") ContmStyleMainExample example);

    int updateByExample(@Param("record") ContmStyleMain record, @Param("example") ContmStyleMainExample example);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(ContmStyleMain record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(ContmStyleMain record);


    List<ContmStyleMain> selectAll(IPage<ContmStyleMain> page, @Param(Constants.WRAPPER) Wrapper wrapper);
}